#import "RNCategoryDetailHeader.h"
#import "RNCategory.h"
#import "RNConstants.h"

@implementation RNCategoryDetailHeader

+(NSArray *)arrayOfHeadersWithRootObject:(id)rootObject filteredWithObject:(id)filterObject inManagedObjectContext:(NSManagedObjectContext *)moc {
    [RNCategory setShowsChildren:NO];
    [RNCategory filterWithObject:nil];
    RNCategoryDetailHeader *header1 = [[self alloc] initWithRootObject:rootObject];
    [header1 setKeyPath:@"subcategories"];
    [header1 setHeaderHeight:RNEmptyHeaderHeight];
    RNCategoryDetailHeader *header2 = [[self alloc] initWithRootObject:rootObject];
    [header2 setKeyPath:@"items"];
    [header2 setHeaderHeight:RNEmptyHeaderHeight];
    return [NSArray arrayWithObjects:header1, header2, nil];
}

@end
